package com.siyu.decorator;

/**
 * @Author: siyu
 * @CreateTime: 2024-10-06
 * @Version: 1.0
 */
public class SausageDecorator extends PancakeDecorator{


    public SausageDecorator(Pancake pancake){
        super(pancake);
    }


    @Override
    protected String getMsg() {
        return super.getMsg() + "1跟香肠";
    }

    @Override
    protected int getPrice() {
        return super.getPrice() + 2;
    }
}
